﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Main.Master" AutoEventWireup="true" CodeBehind="InventoryManagementAdd.aspx.cs" Inherits="RestaurantManagerWebApp.Pages.StockManagement.WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Table ID="tblControl" runat="server">
        <asp:TableRow>
            <asp:TableCell HorizontalAlign="Center"><strong>Add</strong><br /><a href="InventoryManagementAdd.aspx"><img alt="add_icon" width="100px" src="../../Images/Controls/Button-Add-icon.png" /></a>
            </asp:TableCell>
            <asp:TableCell HorizontalAlign="Center"><strong>View</strong><br /><a href="InventoryManagementView.aspx"><img alt="view_icon" width="100px" src="../../Images/Controls/Dj-View-icon.png" /></a>
            </asp:TableCell>
            <asp:TableCell HorizontalAlign="Center"><strong>Update</strong><br /><a href="InventoryManagementUpdate.aspx"><img alt="update_icon" width="100px" src="../../Images/Controls/edit-validated-icon.png" /></a>
            </asp:TableCell>
            <asp:TableCell HorizontalAlign="Center"><strong>Delete</strong><br /><a href="InventoryManagementDelete.aspx"><img alt="delete_icon" width="100px" src="../../Images/Controls/Alarm-Error-icon.png" /></a>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <h2>Inventory[ADD]</h2>
    <br />
    <asp:Table ID="tblIngredientAdd" runat="server" border="1">
        <asp:TableRow>
            <asp:TableCell>
                Item Name
                <br />
                <asp:TextBox ID="txtItemName" runat="server"></asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                Category
                <br />
                <asp:DropDownList ID="ddlCategory" runat="server" DataSourceID="SqlCategory" DataTextField="c_name" DataValueField="c_id" AppendDataBoundItems="true" AutoPostBack="false">
                    <asp:ListItem>** Please Select **</asp:ListItem>
                </asp:DropDownList>
            </asp:TableCell>
            <asp:TableCell>
                Quantity
                <br />
                <asp:TextBox ID="txtQty" runat="server"></asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                Units <br />
                <asp:DropDownList ID="ddlMetric" runat="server" DataSourceID="SqlMetrics" DataTextField="m_name" DataValueField="m_id" AppendDataBoundItems="true" AutoPostBack="false">
                    <asp:ListItem>** Please Select **</asp:ListItem>
                </asp:DropDownList> 
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <br />
    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add" />
    <br />
    <asp:Label ID="lblstatus" runat="server" ForeColor="#FF3300" Text="Label" Visible="False"></asp:Label>
    <br />
    <asp:SqlDataSource ID="SqlCategory" runat="server" ConnectionString="<%$ ConnectionStrings:RestaurantConnectionString %>" SelectCommand="SELECT [c_name], [c_id] FROM [Category]" ></asp:SqlDataSource><br />
    <asp:SqlDataSource ID="SqlMetrics" runat="server" ConnectionString="<%$ ConnectionStrings:RestaurantConnectionString %>" SelectCommand="SELECT [m_name], [m_id] FROM [Metrics]"></asp:SqlDataSource>
</asp:Content>
